/**
 * 
 */
package connectorTests;

import static org.junit.Assert.fail;

import org.junit.Before;
import org.junit.Test;

import connectors.Client;
import connectors.Connection;
import connectors.Server;

/**
 * @author Lucas 'Mezmor' Pfister, Vishal Patel
 *
 */
public class ClientTests {

	Connection client;
	
	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testNegativePort() {
		try{ 
			client = new Client("localhost", -1000);
			fail();
		} catch (IllegalArgumentException e){
		}
	}
	
	@Test
	public void testMaxIntPort(){
		try{
			client = new Client("localhost", Integer.MAX_VALUE);
			fail();
		} catch(IllegalArgumentException e){	
		}
	}

}